<html>
<head>
<link rel="stylesheet" type="text/css" href="./css/base.css" />
<link rel="stylesheet" type="text/css" href="./js/easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="./js/easyui/themes/icon.css" />
<script type="text/javascript" src="./js/lib/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="./js/utils.js"></script>
<script type="text/javascript" src="./js/LodopFuncs.js"></script>
<script type="text/javascript" src="./js/easyui/jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css" href="./css/print.css" id="tableStyle"/>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0"> 
		<embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="http://localhost:8080/lodop/install_lodop64.exe"></embed>
</object>
<script type="text/javascript">
	var urlParam = window.location.search.substring(1);
	utils.loadJs('/js/print.js?v='+utils.format(new Date(),'yyyyMMddHHmm'));
</script>
</head>
<body>
	<div class="easyui-panel" title="操作框"
		style="padding: 4px; font-size: 12px;">
		<!-- <button class="q_bt forbuild" id="query">预览</button> -->
		<button class="q_bt forbuild" id="print">生成订单并打印</button>
		<button class="q_bt" id="onlyprint">只打印</button>
	</div>
	<form action="" id="bill_form">
		<table style="width: 780px;margin-left: 30px;">
			<tr class="tr1">
				<td colspan="6" class="title" height="60px;">砀山县务新塑料制品有限公司出货单</td>
			</tr>
			<tr class="tr2">
				<td colspan="4" class="" height=""><input name="customerId" style="display: none;" /></td>
				<td colspan="2" style="text-align: right;min-width: 160px;
				padding-bottom: 10px;">编号：No.<span id="billNo"></span></td>
			</tr>
			<tr class="printTr tr3">
				<td class="th">单位名称：</td>
				<td style="width: 180px;">
					<input class="input_line" placeholder="回车搜索用户" name="company" id="company" style="width: 60%;" />
				</td>
				<td ></td>
				<td ></td>
				<td class="th">收货人：</td>
				<td  style="width: 200px;"><input class="input_line" name="receiver" /></td>
			</tr>
			<tr class="printTr tr4">
				<td class="th">收货地址：</td>
				<td colspan="3" style="width: 400px;"><input class="input_line" name="address"
					style="width: 80%;" /></td>
				<td class="th">联系电话：</td>
				<td ><input class="input_line" name="mobile" /></td>
			</tr>
			<tr>
				<td colspan="6">
					<table class="table_style" cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td class="w45">项次</td>
							<td class="spmc">品种名</td>
							<td class="gg">规格</td>
							<td class="sl">数量</td>
							<td class="dj">单价</td>
							<td class="je">小计</td>
							<td class="bz">备注</td>
						</tr>
						<tr class="goodsList">
							<td class="line_num">1</td>
							<td class="spmc"><input name="goodsName" /></td>
							<td class="gg"><input name="goodsType" /></td>
							<td class="num sl"><input type="number" name="num"
								onkeyup="sumNum(this)" /></td>
							<td class="dj"><input type="number" name="unitPrice"
								onkeyup="sumMoney(this)" /></td>
							<td class="money je"><input type="number" name="amount"
								onkeyup="sumTotalMoney()" /></td>
							<td class="bz" style="position: absolute;">
								<input name="remark" onkeydown="addTr(this)" />
								<div class="option" style="display: none;">
									<span class="right_position" onclick="toAdd(this)" style="margin-left: 5px;">+</span>
									<span class="right_position" onclick="removeTr(this)" style="margin-left: 5px;">-</span>
								</div>
							</td>
						</tr>
						<tr class="tr5">
							<td colspan="3">总计:</td>
							<td colspan="2" class="t_money"></td>
							<td class=""></td>
							<td class="bz"></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr class="tr6">
				<td class="th">司机签名：</td>
				<td><div class="span_line">&nbsp;</div></td>
				<td></td>
				<td></td>
				<td class="th">客户签名：</td>
				<td><div class="span_line">&nbsp;</div></td>
			</tr>
		</table>
	</form>
	<div id="printHtml" style="display: none;">
		<table style="width: 840px;margin-left: 30px;" class="tmpTable">
		</table>
	</div>
	<div style="display: none;" id="cusomerListDialog">
		<div id="cusomerList"></div>
	</div>
</body>
</html>